#ifndef GETPIXMAP_H
#define GETPIXMAP_H

#include <QString>
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QByteArray>
#include <QPixmap>

class GetPixmap : public QObject
{
    Q_OBJECT

public:
    GetPixmap(QObject *parent = nullptr);
    ~GetPixmap();

public:
    QString get_ipAddr;
    QString get_port;

    void run();

private slots:
    void mjpeg_streamer_reply(QNetworkReply*);

signals:
    void get_getOnePixmap(QPixmap);


private:
    QNetworkAccessManager *manager;
    QNetworkRequest *request;
};

#endif // GETPIXMAP_H
